data

package
v0.0.0-...-8638f65 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModel

func InitialModel() model

func PMT

func PMT(principal, interest, term float64) float64

Gets monthly/annual payment for an amortized loan

Types

type Assumptions

type Assumptions struct {
	MarketGrowthYearly               float64
	RealEstateGrowthYearly           float64
	IncomeTaxStateAndFederal         float64
	DownPaymentInvestedPropIfRenting float64
}

type House

type House struct {
	Address               string
	Cost                  float64
	DownPaymentProportion float64
	InterestRate          float64
	LoanTermYears         float64
	MaintenanceMonthly    float64
	ClosingCostBuy        float64
}

type InputData

type InputData struct {
	Scenarios []Scenario
}

type OpenedChartMsg

type OpenedChartMsg *os.File

type Scenario

type Scenario struct {
	Assumptions Assumptions
	House       House
	Rent        float64
}

func LoadScenario

func LoadScenario(d []byte) *Scenario

func (*Scenario) GenerateChart

func (s *Scenario) GenerateChart() *os.File

Jump to

Keyboard shortcuts

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