How do you write a formula to subtract a negative minus a negative?

a negative minus a negative = a positive. the two negatives put together make a plus sign. example... 5-(-7) = 13