Castle-Wright Formula