(4) Where any person ceases to carry on his or her trade, business, profession or vocation, the gains or profits of such person arising from his or her trade, business, profession or vocation for the year of income in which he or she ceased to carry on his or her trade, business, profession or vocation is the gains or profits from the established accounting terminal date in the year immediately preceding the year of income to the date upon which he or she ceased his or her trade, business, profession or vocation.