Calculate process size