Carl
Level 15

Deductions & credits

Simple. You write it down. Just keep a log book for actual valid miles driven and separate personal use miles from business miles. Keep all receipts too.
If the vehicle is used for less than 100% business use, it can be rather difficult (if not impossible) to prove actual expenses for business miles driven. That's why it's generally better to take the per-mile deduction. You actually get more of a deduction that way in many situations.