blob: bbe01af9be2831a76d20b092e51fc72ba803fb5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
use hiccup::Mortgage;
use hiccup::MortgageUpdate::{self, *};
use std::collections::HashMap;
fn main() {
let mut updates: HashMap<u32, MortgageUpdate> =
HashMap::from_iter((1..29).map(|y| (y * 12, Amortize(24_000.))));
updates.insert(0, Amortize(15_000.));
let m = Mortgage::new(390_000., 0.028, 30);
m.clone().run(updates);
// m.clone().run(HashMap::new());
}
|