Simple retirement calculations written in java