If so, you can use javascript to calculate the amount of days between the start and end date. Here’s an example of how you can do that (assuming you create an input and add the attribute ms-code-input=“date-range-duration”:
<script>
$(function() {
$('input[ms-code-input="date-range"]').on('apply.daterangepicker', function(ev, picker) {
var startDate = picker.startDate;
var endDate = picker.endDate;
var duration = endDate.diff(startDate, 'days') + 1; // '+1' to include start and end date in day count
$('input[ms-code-input="date-range-duration"]').val(duration + ' days');
});
});
</script>