Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Views: 19
Image: ubuntu2004
Kernel: Python 3 (system-wide)
def com_int(p,r,n,c,y): for i in range(n*y): p = p*(1+r/n)+c return p
com_int(1000,0.044,12,0,30)
3734.3952805626127

This would mean that if someone deposited 1000intoanaccountthatiscompoundedmonthlywitha4.4 1000 into an account that is compounded monthly with a 4.4% interest for 30 years, it would be about 3,734.40

com_int(1000,0.044,12,5,30)
7463.116117693421

This would mean that if someone puts 5amonthintothisaccount,theamountwouldroughlybe 5 a month into this account, the amount would roughly be 7,463.12