yearAmount <- 250 * 12
nyears <- 18
yearAmount <- 250 * 12
out <- 5000
pct <- 0.10
(1 + pct)
(out + yearAmount) * (1 + pct)
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out + yearAmount * nyears
5000 + yearAmount * nyears
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 400 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 400 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 100 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out / (5000 + yearAmount * nyears)
out
nyears <- 18
yearAmount <- 100 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 400 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 250 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 300 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 300 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 300 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
nyears <- 18
yearAmount <- 300 * 12
out <- 5000
pct <- 0.10
for(i in 1:nyears) {
out <- (out + yearAmount) * (1 + pct)
}
out
out / (5000 + yearAmount * nyears)
