I have tables "sales" and "pr_sh", I need to sum pr_sh ("earn") where date I get from user. I write this date and amount ("earnings")