Opening/Closing Stock

Hello,
How can I get Opening/Closing Stock for a given period for example I want the closing stock for 2017