More parameters than just altitude are required to do the calculation. See the link below. Multiply the engine power which is calculated for standard atmosphere by the air density ratio and you will get the actual power.
Cheers
ATN
density altitude calculator