Payment calculation and principal balance