Jenkins pipeline function to get days between dates