Mathematical Operations

I've tried Scripted Fields to calculate one variable, but what about calculating 2 different variables and then use mathematical operation between those ones and show a trend graph of the 3 calculations. Is it possible?