You can calculate your taxes using the form 1040-NR. Simply calculate your total taxable income in the first part of the form and use federal income tax brackets to calculate how much taxes you should pay. After that add to that amount other taxes that might apply to you and then enter the amount in the line 16.