how loan financing interest is calculated