The definition is pretty simple:

So, we only have to sum the expressions:

Yes this is simple just what is the angle of the whole circle and just subtract from that number.
Cause the it the oust side has blocks you count the blocks around it and you have your answer