loan cost computation