Beech,
The way that usually works is "commuting" is on your own time and does not count in any way towards duty time. "Deadheading" is a scheduled activity and does count. Thats why your company schedulers have built in the rest period after your "deadhead". The one caution I would heed is... if your company "schedules" you for a "deadhead" the day before and you choose to jumpseat the day of... if you dont get on that jumpseat for whatever reason and miss the trip you will probably find yourself exlaining this to the chief pilots office.