Fine-tuning pricing in order to achieve optimal revenue margins while incurring minimal contracted and regulatory penalties