Calculations of superconducting properties in yttrium and calcium under high pressure