Instantaneous power of the individual LED is equal to the voltage across the LED multiplied by the current through the LED. When the signal is being turned on and off you can multiply the power by the duty cycle to get the average power. The duty cycle is the time the device is on divided by the complete cycle time.