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

Code Example 1

div {
	width: calc(100% - 100px);
}

Learn ReactJs, React Native from akashmittal.com