How can I create a form with calculation