fct_expGrowth<-function(size,rate,periods,dayWeek='d',friday=TRUE) {
if (dayWeek=="d") {
size*(1+rate/(4+friday))^(periods)
} else {
size*(1+rate)^(periods)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.