Blinds Automation Based on Sensor Entity Value

I implemented that and it successfully moves the shades to the correct percentage with 1 small issue. I need to invert the percentage as mentioned in this WTH thread.