We are trying to add a second calculation that meets to the same min, max range of the math in JavaScript.
function AllowableRange(Item) {
...
var range1 = // some calculation
var range2 = // another calculation
return Math.min(800, Math.max(0, range1));
How can I add range2 in the return statement for the same math min - max range?