getDaysRemaining = (validFrom, validTo) => {
    const daysRemaining = getDaysBetween(validFrom, validTo);
    if (new Date(validTo).getTime() < new Date().getTime()) {
        return -daysRemaining;
    }
    return daysRemaining;
}
Get days remaining from a time range
@param {Date} validFrom Start date
@param {Date} validTo End date
@returns {number} Number of days remaining