How To Calculate Input And Output Values