Create compoundinterest.py

calculation of the compound interest formula