Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming