I (and possibly some others as well) have no idea what leading and lagging time means, do you mind explaining? If you post a workbook with sample data it will attract more attention here on the forum.