Periodic solutions to nonlinear equations with oblique boundary conditions