calculate simple interest using static methods.