The relevant provisions of the Transfer of Property Act are as follows: "Section 76: When during the continuance of the mortgage, the mortgagee takes possession of the mortgaged property, (g)he must keep clear, full and accurate accounts of all sums received and spent by him as mortgagee, and, at any time during the continuance of the mortgage, give the mortgagor, at his request and cost, true copies of such accounts and of the vouchers by which they are supported; (h)his receipts from the mortgaged property, or, where such property is personally occupied by him, a fair occupation rent in respect thereof, shall, after deducting the expenses properly incurred for the management of the property and the collection of rents and profits and the other expenses mentioned in clauses (c) and (d), and interest thereon, be debited against him in reduction of the amount (if any) from time to time due to him on account of interest and, so far as such receipts exceed any interest due, in reduction or discharge of the mortgage money the surplus, if any, shall be paid to the mortgagor; " Section 77: Nothing in section 76, clauses (b), (d), (g) and (h), applies to cases where there is a contract between the mortgagee and the mortgagor that the receipts from the mortgaged property shall, so long as the mortgagee is in possession of the property, be taken in lieu of interest on the principal money, or in lieu of such interest and defined portions of the principal.