Apparently, if the pain is on the right side just behind the ribs it may be related to your gall bladder, as that is where it is located.

I found I got the pain mostly in the afternoon (usually straight after lunch) and only when I was sitting at my desk.