Code – Product to sum using transformation formula