Application of compound interest techniques to financial transactions and introduction to life contingencies