Computations of sharp bounds on the distribution of a function of dependent risks