How many years do you get for carrying a gun in US?

You need to talk to a lawyer with the specifics of your situation. Could range from a fine to multiple years in federal prison and fines.