First question on here so please go easy if it's a stupid one!
I have created a PHP based FV calculator for use on a client's website. This is the scenario:
They offer returns of 3% per month based on a variable investment amount (for argument's sake, let's say $10,000). Return is calculated monthly so my formula is:
$$ FV = PV (1 + i)^n $$
This works fine. The problem I have is that they charge fees both annually (let's say $1,000) and monthly (say, $60).
I have tried just adding the fees up and taking them from the FV figure but this is obviously wrong as the fees would affect the amount calculated each month and year.
How would I calculate the amount of fees paid and the net profit?