Simple interest and compound interest calculations