The first thing is to choose whether you want to use the direct or the indirect method. The indirect method is way more common and way easier so I would stick to that.
You can have a look at:
http://financialmemos.com/questions/what-is-operating-cash-flow-formula/
http://financialmemos.com/questions/how-to-do-indirect-cash-flow-statement/