fixed partitions calculation