It has been pointed out by David that the calc function in CSS requires a unit such as px or % to function properly. You can use multiple calculations in one statement, like this:
width: calc((100% / 7) - 2px);
For those seeking clarification on this topic, it is important to note that calc can accept any unit, not just px and %. This includes em, rem, vh, vw, vmin, vmax, etc. Calc will resolve into a value that can be used normally, so just like you wouldn't set width: 100;, you should also ensure the result of calc is not unitless.
While using units on both sides when dividing or multiplying might seem unnecessary, at least one of the numbers must have a unit specified for the browser to understand how to interpret the result.
/* These examples are incorrect */
width: calc(75 + 25);
width: calc(4 * 20);
width: 100;
/* These are the correct format expected by the browser */
width: calc(75px + 25px);
width: calc(20px * 4);
width: 100px;