Script to subtract values between 2 elastic search _types

Does this help?

EDIT: nevermind, it was you who asked that question before. Sorry, I don’t know.