Date Column difference in days using Scripted fields

Hi! I found this discuss post that might be similar to what you are asking:

There is also this blog post: Using Painless in Kibana scripted fields | Elastic Blog

Can you check it out and see if it helps?