I'm not sure that I understand your question completely and correctly. So I'm guessing:

1. Let denote thenumber of cutsparallel to the xy-plane, xz-plane and yz-plane respectively. With each cut you'll get N +1 pieces.

Then the number A of pieces which you'll get by slicing the parallelepiped is calculated by:

2. If then