How to create order entry form with custom calculations?