Address calculation