space calculate