Add new line based on the values of the lines on the line graph

Hi! I did a line graph that contains the values of the total and failed. Now I wanted to add a line line that computes the success rate (1 - failed/total). Is that possible in kibana?