    pub fn setlistforshorttermrental(
        .....

        available_period: Vec<String>,

        ....
    ) -> Result<Response<C>, ContractError> {
        ......
        token.shortterm_rental.available_period = available_period;
        ....
    }
    pub fn setlistforlongtermrental(
        .....

        available_period: Vec<String>,

        ....
    ) -> Result<Response<C>, ContractError> {
        ......
        token.longterm_rental.available_period = available_period;
        ....
    }
        let new_checkout = renting_period[1].parse::<u64>();
        let new_checkout_timestamp;

        match new_checkout {
            Ok(timestamp) => {
                new_checkout_timestamp = timestamp;
            }
            Err(_e) => {
                return Err(ContractError::NotReserved {});
            }
        }

        if ((new_checkout_timestamp - new_checkin_timestamp)/ 86400) < token.shortterm_rental.minimum_stay {
            return Err(ContractError::LessThanMinimum {});
        }
        let new_checkout = renting_period[1].parse::<u64>();
        let new_checkout_timestamp;

        match new_checkout {
            Ok(timestamp) => {
                new_checkout_timestamp = timestamp;
            }
            Err(_e) => {
                return Err(ContractError::NotReserved {});
            }
        }

        if ((new_checkout_timestamp - new_checkin_timestamp)/ 86400) < token.longterm_rental.minimum_stay {
            return Err(ContractError::LessThanMinimum {});
        }
