For purposes of computing “taxable income of a nonresident or part-year resident” under paragraph (1) of subdivision (i) of Section 17041, except as provided in Section 25141, gross income from sources within and without this state shall be allocated and apportioned under rules and regulations prescribed by the Franchise Tax Board.