How to get calculations into forms