Available To Sell (ATS) Calculator This script is used to calculate the Available To Sell (ATS) quantity of items for each bucket period.