{{define "comparison"}}
{{range $l := .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}}
{{$l.Name}}
Type{{.Type.Name}}
Term{{.Term}} Years
AmortizationFixed
Interest rate{{.Interest}}%
Loan payment${{dollars .Result.LoanPayment}}/month
Monthly MI${{dollars .Mi.Premium}}/month
Real estate taxes${{dollars .Tax}}/month
Hazard insurance${{dollars .Hazard}}/month
Total monthly${{dollars .Result.TotalMonthly}}
Purchase price${{dollars $.Estimate.Price}}
Loan amount${{dollars .Amount}}
Down payment${{diff .Amount $.Estimate.Price }}
Closing costs${{dollars .Result.TotalFees}}
MI Premium${{dollars .Mi.Upfront}}
Credits${{dollars .Result.TotalCredits}}
Cash to close${{dollars .Result.CashToClose}}
{{end}}