compute_exposure function

exposure