But this is just an example. The actual calculator would need to accept inputs for D, P, W, A, S and compute the probability.