Updated calculatePartition formatting.
Updated calculatePartition to return partition size.