To calculate implied volatility you need these: underlying price, option premium, strike price, days to exptration, risk free interest rate(treasury bill rate) and cost of carry. You have to make sure option premiums and underlying price are collected at the same point of time. Good luck.