If the word shows possession <who is belongs to> you add a apostrophe after the s.
For instance, if talking about a pen belonging to Mr. Hastings, people usually mistake it and right Mr Hasting's pen, but since it is showing possession you say Mr Hastings' pen.
Hope this helps!
Correct: Mr. Hastings' pen