compound-calc
Version:
Compound Interest calculator that allows dynamic series of contributions
9 lines (8 loc) • 391 B
TypeScript
export type Contributor = (period: number, i: number) => number;
type Compounded = {
result: number[];
principal: number[];
total: number;
};
export declare function compound(initial: number, amount: number | number[] | Contributor, years: number, interest: number, accrualPeriod?: number, contributionPeriod?: number, contributeBeforeInterest?: boolean): Compounded;
export {};