Recessed lights rough in
The top cabinets are 12" deep, and the bottom cabinets are 24" deep. That said, you're centering the light over that second 12" of counter sticking beyond the top cabinets. That fixture would be centered 18" out from the wall in that case. NOW... I prefer to bring the fixture in a tad bit more towards the wall than that so that you're not standing in your own shadow so much. The upper cabinets often get crown mold around the top. I try to bring the fixtures slightly inboard of that "centered at 18 inch" recommendation if I can, as long as the trims won't interfear with the crown mold. Have fun...