ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

I need to know how to calculate percentage of task completion in task form

i am a new member and i want to caliculate percentage of completion of task based on data entered in 2 custom fields field1. total to be done
FIELD2 . DONE TILL NOW
THE REQUIREMENT IS TO CALICULATE THE PERCENTAGE OF TASK COMPLETION AS FIELD2/FIELD1

NOTE: THIS IS REQUIRED IN TASK FORM