When any such creditor redeems from the foreclosure of a mortgage under the provisions of sections 550.30 to 550.35 the district court shall determine the amount that shall be credited on the creditor’s claim against the estate.