Transfer GPA

Please tell me the right way to calculate the GPA for the application

I know that units completed doesn’t include Ws, but… here is an example.

class) English 1
units) 3 units
trans) CSU
grade) A
grdpts) 12

class) History 2
units) 3 units
trans) CSU
grade) A
grdpts) 12

class) Stats 1
units) 3 units
trans) CSU
grade) W
grdpts) 0

class) Cooking 2
units) 3 units
trans)
grade) W
grdpts) 0

if I was adding the above pretend classes up, for my cumulative GPA or for my transferable GPA …

if I am calculating GPA by grade points/units attempted and I count only the Stats 1 W (because it’s a CSU transferable course) into the total and leave out the cooking W I would calculate this by 24 / 9 = 2.67 GPA

if I am calculating GPA by grade points/units attempted and I count both Ws it’s 24 / 12 = 2.0 GPA

if I am calculating GPA by grade points/units attempted (excluding both Ws) it’s 24 / 6 = 4.0 GPA

if I am counting GPA by grade points/units completed it’s 24 / 6 = 4.0 GPA

thats why im wondering if its grade points / units attempted or grade points / units completed
thats why im wondering about how to count Ws, and Ws from CSU transferable classes
thats why im wondering what is included in the cumulative GPA

these different combinations greatly effect a GPA as you can see a range of 2.0 - 4.0

please share any information you have at all, thanks.