Question: I would like to input a number in a range from another sheet and I don't know how to do it.

The function:

```
=PERCENTRANK.INC(sheet1!$C$6:$C$**96**;sheet1!$C$6))

```

For example: The result of this function should be in a range of 10 days. So the range would be sheet1!M6:M**16** (not sheet1!M6:M**96**)

I want input different numbers on the "96" space.

And I have a large matrix so it's impossible to do it manually.

Thank you so much!!

Answer: 
^ A more specific(to your question)and simpler answer in my opinion

```
var diff = Date.now() - new Date("2022-06-25T23:28:02.816Z");

if(diff <= 1000 * 60 * 60 * 24 * 2){
    console.log("less than 2 days old");
}else{
    console.log("more than 2 days old");
}

```
**Idea**

Parse the cookie and the current datetime, convert it into epoch ms, sompute the difference in days.

**Code**

```js
let s_dtCookie    = "2022-06-27T23:28:02.816Z"
  , n_epochCookie = (new Date(s_dtCookie)).getTime()
  , n_epochNow    = (new Date()).getTime()
  , n_deltaDays   = (n_epochNow - n_epochCookie) / (24 * 3600 * 1000)
  ;

console.log(`Cookie time '${s_dtCookie}' is ${n_deltaDays} days in the past.`);

```

**Reference**

MDN JS docs, [Date.getTime()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime) section.