I need help modifying a previous formula that I have.

Here's the formula:

=IF(K10="W",IF(M10="W",H10*J10,0),IF(M10="W",O10+P10,IF(M10="P",P10,0)))

I want to add the following into the formula:

if K10="W-DH" then the sum is (H10/2)*J10,10

I've tried adding this to formula but its just telling me I have too many arguments.

Any ideas guys

Thanks