transform daily bars to weekly