homebase calculated with z and n