First, if I understand your problem, you do not want present value at all. You need future value.
Second, you say "paid" with respect to the interest bearing account. Do you mean added to the account balance ("credited" in bank lingo abd thenceforward earning interest) or actually distributed to you in money.
Third, the way you describe the problem leaves the term "period" so general as to be worthless. The calendar is messy. Months have different numbers of days and weeks. The number of days in a year is not constant. If the interest rate is for a 30-day month, interest is credited on the last day of the calendar month, and payments are made at the start of every Friday, the formula for that is going to be complex. Bankers worry about those sorts of thing and deal with them by contract (as constrained by regulation in the US) and compute them by calculation rather than formula.
To make this tractable at all, we need to make some simplifying and clarifying assumptions. I shall assume that r is stated as an
ANNUAL percentage rate and that all of this is before tax (which is not realistic for periods greater than a year in the U.S.) I shall also assume that m and n are fractions of years and that m is not less than n. For example, m might be 52 (meaning weekly payments) and n might 12 (meaning monthly crediting). I shall also assume that we are not dealing with a leap year. The resulting formula will not be exact because there are, for example, slightly more than 52 weeks in a year and because how banks compute interest on a balance that varies within a compounding period depends on contractual language and is not uniform between banks. (I know how my bank used to do it because I wrote the contractual language and set up the quality control procedure: we reduced rates to a daily basis, accrued interest daily to the millionth of a penny, computed interest on the day's ending balance without regard to accruals until the first day of the month when accrued interest from the last month was added to principal.)
[math]\text {Annual PERCENTAGE rate} = r > 0;\\
\text {Number of compounding periods per year} = n \ge 1;\\
\text {Compounding period rate} = i = \dfrac{r}{100n};\\
\text {Daily rate} = d = (1 + i)^{n/365} - 1;\\
\text {Principal } = P > 0;\\
\text {Number of withdrawals per year} = m \ge n;\\
\text {Amount of each withdrawal} = w;\ text { and}\\
\text {number of coumpounding periods} = t.[/math]
Then the
APPROXIMATE formula is
[math]P(1 + d)^{365t/n)} - \dfrac{w(1 + d)^{365mt/n} - 1}{d}.[/math]
I am hoping that
@BigBeachBanana will check my logic.