EOQ under exogenous and periodic demand