This is my less script:
Make sure there's space on both sides of the operator when using
calc(100% - 12px) ^-^------------The `calc` property is very particular about the spacing of the operator. (e.g. - + / *)
It used to drove me nuts when it would work sometimes but not other times. Then I read this article.