In your final formula you have m=(cδT+L)Pt The units on the right are Watt.second on the top. Watt is Joule/second so the top is just Joule (J) The bottom is Jkg-1K-1.K + Jkg-1 This simplifies to Jkg-1 + Jkg-1 which is just Jkg-1 on the bottom as you are just adding the same units. (The units must be the same if you add two quantities.) So you have Jkg−1J
I thought it might be something to do with the + on the bottom, but completely forgot how that was relevant. And yes! Missed a s-1 - I can totally see that now