File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
ansible/roles/munin-node/templates/plugins/lovelace Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,29 @@ accrued_interest = 0
39
39
for _ in range (days_griefed ):
40
40
accrued_interest += interest_per_day * (savings + accrued_interest )
41
41
42
+ savings_policy_v1_start = datetime .date (2025 , 3 , 1 )
43
+ savings_policy_v1_standard_savings_per_month = 50
44
+ savings_policy_v1_savings_per_month = {
45
+ # Roses are red,
46
+ # violets are blue,
47
+ # running heat pumps in winter
48
+ # makes Chris Lovering poor
49
+ 12 : savings_policy_v1_standard_savings_per_month - 10 ,
50
+ 1 : savings_policy_v1_standard_savings_per_month - 20 ,
51
+ 2 : savings_policy_v1_standard_savings_per_month - 10 ,
52
+ }
53
+ savings_policy_cursor = datetime .date (2025 , 3 , 1 )
54
+ while savings_policy_cursor <= today :
55
+ # Chris thinks about saving every day, but he only manages to actually put
56
+ # money into his bank account on the 1st of every month due to a "tax
57
+ # advisor suggestion".
58
+ if savings_policy_cursor .day == 1 :
59
+ savings += savings_policy_v1_savings_per_month .get (
60
+ savings_policy_cursor .month ,
61
+ savings_policy_v1_standard_savings_per_month
62
+ )
63
+ savings_policy_cursor += datetime .timedelta (days = 1 )
64
+
42
65
inherited_money = 0
43
66
44
67
if days_griefed > 10 :
You can’t perform that action at this time.
0 commit comments