calculate_weights function

Calculate Inverse Probability of Censoring Weights