Initialize balance to 0 Initialize monthly_fee to 0 #Extract date and amount from the expense
# Reset monthly_fee to 0
#Calculate total_spent as the sum of amounts in expenses #Calculate remaining_balance after deducting the annual fee (12 * 5)
#Print "Total spent: total_spent" #Print "Remaining balance after deduction: remaining_balance"