Quality cost-based allocation of training hours using learning-forgetting curves