You may retain up to $20,000 in your CPF Ordinary Account if you are taking an HDB housing loan. The remaining balance above $20,000 must generally go toward financing your flat before the loan is granted. If you want to keep additional CPF funds for other needs, you could consider alternative financing options or discuss terms with HDB to ensure you are comfortable with the arrangement.