How to reference timerange value in scripted field?

Hi all, here comes a weird requirement (but indeed necessary) on my project: I need to multiple one field value with the number of days of dashboard time range.
I know with scripted field feature I could do some easy calc upon field value, but I do have no idea on how to achieve this.
Could you guys help out? Thanks.

I can't see that this would be possible, as the script won't know the time range you have used.