Deductions & credits

How do you calculate the AMT basis? What’s the formula I use for it?