Machining Intake to match decked block???

I have a 340 that I had rebuilt several years ago and when the machine was done the block was decked where the heads bolt to.

When I put my intake on its barely fits leading me to believe that I am going to machine the intake to mount the block. Is there a calculation used to figure out how much I need to have machined off the intake?