Calculates orbital times