How can I apply a point light to a flat surface

So I understand Attenuation. The thing is I need to get a location on a flat surface to compare to a light position to get the length between them. The thing is this stuff is confusing because I draw 3 of these (which will be 4 later) and each set will have it’s own light. I have them moving back in the Z direction.