I uploaded a cleaned up version of my DESS price schedule logic here: Another Strange DESS behaviour - #26 by UpCycleElectric
AND