function getCurrentRate() public view returns (uint256) {
    
    uint256 elapsedTime = block.timestamp.sub(openingTime);
    uint num_day = uint(elapsedTime) / 86400;
    rate = initialRate.sub(num_day.mul(initialRate).div(100));
    return rate;
  }