How to create a form to take and calculate attendance?