computing a year interest for an account with frequent deposits