How to calculate the optimal contribution amount to maximize CPF benefits