Credit calculator written in java.