calculations involving acids and bases