Calculating shunt fraction