Self Employed: Simple IRA 3% Matching Contribution

What is the formula for calculating the 3% Simple IRA matching contribution for a self-employed person? Do I plug in numbers from Form 1040 Schedule C and Schedule SE? Thank you!