taxation

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CII_START_DATE, _ = time.Parse("2006-01-02", "2001-03-31")
View Source
var DEBT_INDEXATION_REVOCATION_DATE, _ = time.Parse("2006-01-02", "2023-04-01")
View Source
var EQUITY_GRANDFATHER_DATE, _ = time.Parse("2006-01-02", "2018-02-01")
View Source
var ONE_YEAR = time.Hour * 24 * 365
View Source
var THREE_YEAR = ONE_YEAR * 3
View Source
var TWO_YEAR = ONE_YEAR * 2

Functions

This section is empty.

Types

type Tax

type Tax struct {
	Gain      float64 `json:"gain"`
	Taxable   float64 `json:"taxable"`
	Slab      float64 `json:"slab"`
	LongTerm  float64 `json:"long_term"`
	ShortTerm float64 `json:"short_term"`
}

func Add

func Add(a, b Tax) Tax

func Calculate

func Calculate(db *gorm.DB, quantity float64, commodity config.Commodity, purchasePrice float64, purchaseDate time.Time, sellPrice float64, sellDate time.Time) Tax

Jump to

Keyboard shortcuts

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