How can I perform custom calculations on my form?