I ended up using System.currentTimeMillis(). Will this give me the same problem? And in that case, can you please give me an example of how you would solve it?
{
"script_score": {
"script": "(0.08 / ((3.16*Math.pow(10,-11.5)) * Math.abs(System.currentTimeMillis() - doc['created'].date.getMillis()) + 0.05)) + 1.0"
}
}