A negative discount is a price over list: −5 is a multiplier of 1.05.
The calculator needs JavaScript. The arithmetic is in the guide linked below.
Free tool by Extrusia, software for window & door manufacturers.