Zakaat on pension fund

Q: I will be leaving my employer and would like to know how to calculate the zakaat on my pension fund withdrawal. I have worked at the current place for 4-5 years. Should I calculte zakaat on the value as it is on my last day or do I need to go back, work out the values on each year and then calculate zakaat on each year?

Stray thoughts

Q: There is this constant problem with my Intentions when doing good deeds or ibadah for the sake of Allah. I just feel like its all hypocrisy, and it seems I don't want people to recognise me or praise me for the good deeds that I have done, but deep inside I feel another thing. Please can my deeds be still accepted, and how can I cure this illness?