implemented interest calc