Using calc() in LESS →

If you ever try to use calc() in LESS, using the standard syntax will give you an unexpected result. For example, if we used this standard syntax:

width: calc(100% - 200px);

LESS will compile that as:

width: calc(-100%);

For the correct syntax for LESS, you have to use an escaped string, like this:

width: ~"calc(100% - 200px)";