deposit

package
v0.0.0-...-b080cc2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const TJS = "TJS"
View Source
const USD = "USD"

Variables

This section is empty.

Functions

func CalculateMonth

func CalculateMonth(amount int, currency string) (min int, max int)
Example
fmt.Println(CalculateMonth(0, TJS))
fmt.Println(CalculateMonth(0, USD))
fmt.Println(CalculateMonth(500_000, TJS))
fmt.Println(CalculateMonth(500_000, USD))
fmt.Println(CalculateMonth(1_000_000, TJS))
fmt.Println(CalculateMonth(1_000_000, USD))
Output:

0 0
0 0
1666 2500
1250 1666
3333 5000
2500 3333

func CalucalateYear

func CalucalateYear(amount int, currency string) (min int, max int)

func PercentFor

func PercentFor(currency string) (min int, max int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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