(b)the assessment unit shall––(i)make the assessment of the total income or loss by an order in writing after taking into account all relevant material which it has gathered and after giving the assessee an opportunity of being heard, and may also initiate penalty proceedings, if any;(ii)determine the sum payable by the assessee or refund of any amount due to him on the basis of such assessment.