How To Calculate Input And Output