where  = number of electrons produced,  = number of photons absorbed.
Assuming each photon absorbed in the depletion layer produces a viable electron-hole pair, and all other photons do not,
where t is the measurement time (in seconds), 
 = incident optical power in watts, 
 = optical power absorbed in depletion layer, also in watts.