Updating Environment Processor maths

tl;dr I fail at math