Check out example codes for "subtracting css". It will help you in understanding the concepts better.

Code Example 1

width: calc(100% - 10px);

Learn ReactJs, React Native from akashmittal.com