UNPKG

mortgage

Version:

Project with different functions to calculate: -The minimun payment of a mortgage -The loan lenght of a mortgage -Calculate the new loan lenght adding an extra payment -The amortization table of the payoffs -Calculate simple interest and amortiz

21 lines (20 loc) 1.38 kB
export declare const getMonthlyPayment: (loan: number, interestRate: number, loanLength: number, timesInterestCompounds?: number) => number; export declare const getLoanBalance: (loan: number, interestRate: number, loanLength: number, periodElapsedMonths: number, timesInterestCompounds?: number) => number; export declare const getSimpleInterest: (balance: number, interestRate: number, timesInterestCompounds?: number) => number; export declare const getTotalInterest: (loan: number, interestRate: number, loanLength: number, timesInterestCompounds?: number) => number; export declare const getTotalAmortizingInterest: (balance: number, interestRate: number, mountlyPayment: number, timesInterestCompounds?: number) => number; export declare const getLoanLength: (loan: number, interestRate: number, mountlyPayment: number, timesInterestCompounds?: number) => number; export declare const getMortgagePayoff: (loan: number, interestRate: number, loanLength: number, extraPrincipal?: number, initialDate?: number, timesInterestCompounds?: number) => { mountlyPayment: number; extraPrincipal: number; interestRate: number; defaultTotalInterest: number; totalInterestWithSavings: number; loan: number; defaultLoanLength: number; loanLength: number; startDate: Date; endDate: Date; defaultEndDate: Date; data: {}; };