How to find the difference between two TIME PICKERS?

I have two time pickers: $w(‘#timePicker1’) and $w(‘#timePicker2’)
How do I get the difference between these two and set it on an input bar named $w(‘#workedHours’)?