An automatic price adjustment formula for a regulated firm