My wife and I have a few hens that decided not to use the nest box. The girls then started eating the eggs they would lay outside the box. We added calcium and made sure the hens were getting the nutrition they required but they continued the behavior.
I bought some wooden eggs and put them in the nest box. Problem solved. They began to lay in the box again and stopped eating the eggs.
They have stopped laying for the winter now.