Get number of week days between dates

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#region Compound Interest calculator

## Initial investment
$AccountBalance = 10

## Interest Rate, calculated monthly
$InterestRate = 1 + (0.01 / 12)

## Balance after 20 years
$Years = 20

for ($Month = 0; $Month -lt (12 * $Years); $Month++)
{
  $AccountBalance *= $InterestRate
  $AccountBalance += 10 #Value to invest every month
}

## Final Balance
$AccountBalance

#endregion Compound Interest calculator