Inertial and viscous effects on dynamic contact angles