Course 4 Week 1 assignment 1 exercise 5 conv_backward wrong values error

Please note that posting your code is not allowed. I will delete it after this reply.

Your implementation of vert_start, vert_end, horiz_start, and horiz_end are not correct. Why you are using pad here? We have to use stride, not pad. And, your addition is also not correct. Check this post which explains how to use addition and multiplication for this.