how to calculate mortgage approval amount