Java – Percentage Formula Calculation