Discuss the methods and formulas for calculating antiviral doses based on hepatic function, considering factors such as liver enzymes and synthetic function. Share any insights or challenges related to dosing antivirals in patients with hepatic impairment.