function getLockTime(address _to) public view returns (uint256, uint256) {
    
    LockUp[] storage lockData = addressLock[_to];

    uint256 lockAmountNow;
    uint256 lockLimit;
    for (uint256 i = 0; i < lockData.length; i++) {
      LockUp memory temp = lockData[i];

      
      if (block.timestamp >= temp.startTime && block.timestamp < temp.endTime) {
        lockAmountNow = lockAmountNow.add(temp.lockamount);
        if (lockLimit == 0 || lockLimit > temp.endTime) {
          lockLimit = temp.endTime;
        }
      }
    }
    return (lockAmountNow, lockLimit);
  }