Tested with console.log. Calculations are correct.
added console.log check for height.
Added console.log check for width.
Added console.log check for length.