The Max Planck theorized that the energy was transferred in chunks known as quanta, equal to hv. The variable 'h' is the Planck's constant equals to 6.626176 x 10-34 joule-seconds and 'v' is the frequency of light. Light is represented as a photon (light particle). The Planck’s equation helps to calculate the energy of light when their frequency is known. The energy of a photon formula is just the product of Planck's constant and frequency of light.
If the wavelength of the light/photon is known, you can calculate the light energy by using the wave equation to calculate the frequency and then apply Planck’s equation to find the photon energy.