(4) For the purposes of subsection (1), where by reason of any provisions of sections 55 to 59 any dividend, interest, royalty, services, technical advice, assistance, rental or other income is gross income of a person from a proprietorship of continuing proprietorship business of his for the basis period for a year of assessment, there shall be set off under subsection (1) only so much of the tax