def get_corrected_measurement_id(args, n):
    """ Correct the provided measurement id, in case of multiple cloud-free periods. """
    if args.measurement_id is not None:
        order = int(args.measurement_id[-2:])
        new_no = order + n
        measurement_id = args.measurement_id[:-2] + str(new_no)
        measurement_no = args.measurement_number
    else:
        measurement_no = str(int(args.measurement_number) + n).zfill(2)
        measurement_id = None
    return measurement_id, measurement_no
