What is buying on margin and how to use margin calculator? please answer anyone

SPAN calculator is a unique tool designed to help you figure out margin requirements even before you take a trade. 

For Zerodha span margin calculator  check this Link

To read more about span calculator check this Link