Where an individual agrees that a salary to which he is legally entitled will be paid to a religious institution and he, in return, will receive board, lodging and a small living allowance, the difference between the salary assigned or paid over by him to the religious institution and the value of the board, lodging and living allowance will be treated as a charitable donation.