Network Stats

What I want to do is a formula which collects data usage from both MOBILE NETWORK and WLAN, then combine it and show it in GB.
There is a thread that I found on this forum but it is about MOBILE data usage value from nth day of month.
One more question How can display SSID initials for instance my ssid is XX(whitespace)YY and another XXYY. In the first case expected output should be XY and in the second case only X.