get.weights function

Calculate the weights for each dated object