Multiply his AGI by 7.5% to find the amount medical needs to meet before deducting:
46,000 x 0.075 = $3,450
He can deduct any amount over $3450.
Subtract that from his medical total to find the amount he can deduct:
5800 - 3450 = 2350
He can deduct $2,350.