Sum of two fields into a one custom field

As long as it's a script it will work with whatever you want. I'm not telling you how to write the script though. Which I don't know as I'm not using painless.

I always prefer modifying my data before indexing it.