Static power is mainly caused by Power MOSFET on-resistance. So please use I^2.R for calculation. Another static power is consumed by controller circuit. Calculate it with Vin.Iq
Dynamic power is mainly caused by gate switching. So calculate it with 1/2.C.Vin^2.f