Adding a comment to explain why you substract 2 would be helpful.