Calculating interest for different situations