AN ALGORITHM FOR COST-BENEFIT ANALYSIS
where p1 is the probability of the event happening;
p2 is the probability that the event doesn't happen;
C1 and C2 are the relevant costs when the event occurs and when it does not, respectively; and
B1 and B2 are the relevant benefits when the event occurs and when it does not, respectively.