That has to be the most over bloated way of calculating something that is very simple that I have ever seen in my entire programming life since I left school in 1983...