remove branch from divide and round up function