I want to make custom script to count difference between two input times, and difference between two times displays in total time field. So, to achieve this outcome, how can i start scripting and in which file i have to make changes.
Look my idea is actually like as shown in below figure.
Here i created a custom DocType and put 3 custom DocFields inside it as a 1) Start Time 2) End Time 3) Total Time. For start time and stop time, i put a time picker. Now i want total time difference between those two selected time. So as i am new to coding stuff, how can i calculate time difference and display it to total time field automatically ?