Safety valve calculation software