how to calculate Interest earnings