Calculate the WGT dates in different programming languages