add total workamount function