monetary

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package monetary contain monetary related data structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonthlyInstallmentInfo

func MonthlyInstallmentInfo(totalBalance *decimal.Big, modDigit, division int) (installment, installmentFractional, installmentExtra *decimal.Big)

MonthlyInstallmentInfo returns monthly repayment plan.

func MonthlyInstallmentInterestAmount

func MonthlyInstallmentInterestAmount(balance *decimal.Big, annualInterest *big.Rat) (fee *decimal.Big)

MonthlyInstallmentInterestAmount returns monthly interest amount from annual interest ratio.

func MonthlyInstallmentSchedule

func MonthlyInstallmentSchedule(
	totalBalance *decimal.Big,
	annualInterest *decimal.Big,
	modDigit, division int,
	payExtraAmountEarlier bool) (
	installment, installmentExtra, totalInterests *decimal.Big,
	principleBalanceBeforePayments,
	principleBalanceAfterPayments,
	installments,
	interests,
	schedules []*decimal.Big,
)

MonthlyInstallmentSchedule returns detailed monthly repayment plan

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL