Should be able to do something like this:
Set the default property of the start date which is derived from the first gallery row to:
First(Gallery1.AllItems).StartDate
you will need to change gallery1 to your gallery name and StartDate to your column \ date picker name. If its a date picker it will need .SelectedDate at the end
And end date to:
Last(Gallery1.AllItems).EndDate
you will need to change gallery1 to your gallery name and StartDate to your column \ date picker name. If its a date picker it will need .SelectedDate at the end
then use DateDiff(EndDate,StartDate) to get the difference in days