finance

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimpleInterest

func SimpleInterest(p float64, r float64, t float64) float64

SimpleInterest calculates the amount of interest earned over a time period using the formula I = Prt. p: principal, r: annual interest rate t: period of time

func TotalAmountPlusInterest

func TotalAmountPlusInterest(p float64, r float64, t float64) float64

TotalAmountPlusInterest calculates the total amount plus interest earned over a time period. p: principal, r: annual interest rate t: period of time

Types

This section is empty.

Jump to

Keyboard shortcuts

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