proper wattage for a resistor?

Using a 5v input with a 500mah draw which resistor wattage should I be looking for? The input will be 3-40 volts...

On the LTM8021 datasheet there is a graph labeled "Load Current vs Input Voltage". It shows you need at least 12V in to get 500mA out.