Try the formula in this file. You can test by entering the actual production. This assumes linear increase or decrease based on the numbers you gave. It is assumed that bonus is zero if production is lower than the minimum you gave.
Oops it seems I cannot attach a file, I will send a personal mail