leave form days calculation

I have created an entity by the attributes called StartedDate , FinishedDate , NoOfDays. Based on StartedDate and FinishedDate , in between days should be printed on the NoOfDays by default . For this problem I have to create a microflow.  Can anyone tell how to create the microflow for this in the step wise manner.  
1 answers

If you want to see the no. of days filled immediately then you can use an On change microflow on the FinishedDate and StartDate field and then use the daysBetween function to calculate your number of days.

Few checks that you might need to perform before calculating like checking if any of the date is empty or not, otherwise the function might throw error.