First of all try to find the owner and pay back to him if you are unable to do so then yes it is right calculate the price and give sadaqah on behalf that person but remember if one day that person appeared then you have to speak to him if he will be agree with sadaqah then it is fine but if he demands then you have to pay again