Benchmark from two indexes

Hi everyone,
I would like to display in a chart the value of my total portfolio minus the inflaction (the real value instead of the nominal value), but I can’t find a way to subtract two indexes or to create a benchmark from them.
Is there a way to do this?