If it is a gift for the professor, it should be at most $20. If it is for your boss/supervisor, the amount can be higher. However, it's not about the cost but the thought that counts. A heartfelt note can be just as meaningful as a more expensive gift.