service

package
v0.0.0-...-e86600b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EPSILON float64 = 0.01
	MONTH           = 12
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Periods

type Periods struct {
	// contains filtered or unexported fields
}

func NewPeriods

func NewPeriods(startDate string, periods int) *Periods

func (*Periods) AddPeriod

func (p *Periods) AddPeriod(period string, periodIndex int)

func (*Periods) GetPeriod

func (p *Periods) GetPeriod(period string) int

type PrincipalInterest

type PrincipalInterest struct {
	// contains filtered or unexported fields
}

func NewPrincipalInterest

func NewPrincipalInterest(principal, interestRate float64, periods int) *PrincipalInterest

func (PrincipalInterest) Repayment

func (pi PrincipalInterest) Repayment(period int) float64

Jump to

Keyboard shortcuts

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