factor in some growth in CBA price prior to DRP, reduces amount of shares, but increases their cap value - using interest rate as a base here, its all a guess but on average will likely be higher

This commit is contained in:
2025-03-27 14:22:18 +11:00
parent 9baa3b4987
commit fdbad8a2de

View File

@@ -223,7 +223,9 @@ def calculate_savings_depletion(finance):
break
# twice a year, CBA has a dividend of $2-2.5 DRP gives back around 20ish shares twice a year, estimate this...
# and on average they exceed interest rate, but lets assume at least int.rate increase (remember its twice a year, so /2)
if current_date.day == 1 and (current_date.month == 4 or current_date.month == 10):
CBA_price = CBA_price+ CBA_price * (Interest_Rate/2)/100
drp = int( (2.25*D_CBA_shares/CBA_price) )
print( f"DRP {current_date} - adding {drp} CBA shares" )
D_CBA_shares += int( (2.25*D_CBA_shares/CBA_price) )