A machine learning based heuristic to predict the efficacy of online sale