Online production planning to maximize the number of on-time orders