Carter's factor calculation using domain transformations and the finite element method